import os
import sys

def main():
	for root, dirs, files in os.walk("./src"):
		for file in files:
			if file.endswith(".aidl"):
				cmd = "aidl -Isrc " + root + "/" + file
				print(cmd)
				input,out,err = os.popen3(cmd)
				print(err.read())

if __name__ == '__main__':
	main()
	raw_input("Press ENTER to exit")